﻿<%@ Page Title="" Language="C#" MasterPageFile="~/kcadastro.Master" AutoEventWireup="true"
    CodeBehind="usuarios_edit.aspx.cs" Inherits="Kcadastro.adm.usuarios_edit" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <!-- ===== Sidebar Close and Content Part start ====== -->
    <div id="content_wrap">
        <div class="title_bar">
            <h2 class="page_title_1st">
                Administrativo</h2>
        </div>
        <div class="content_area">
            <h3 class="cont_title">
                Cadastro de Usuário</h3>
            <asp:HyperLink ID="hl_voltar" NavigateUrl="usuarios_list.aspx" runat="server">Voltar</asp:HyperLink>
            <div class="form_wrap">
                <asp:TextBox ID="tbi_user" Visible="false" runat="server" CssClass="input-xlarge"></asp:TextBox>
                <%--<form id="personal_details" class="commonForm">--%>
                <asp:Panel ID="Panel2" runat="server">
                    <div class="control-group">
                        <label for="focusedInput" class="control-label">
                            CPF:</label>
                        <div class="controls">
                            <asp:TextBox ID="tb_cpf" runat="server" CssClass="input-xlarge"></asp:TextBox>
                            <asp:MaskedEditExtender ID="MaskedEditExtender2" runat="server" TargetControlID="tb_cpf"
                                Mask="999.999.999/99" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus"
                                OnInvalidCssClass="validador" MaskType="None" InputDirection="LeftToRight" AcceptNegative="Left"
                                ErrorTooltipEnabled="True">
                            </asp:MaskedEditExtender>
                        </div>
                    </div>
                    <div class="control-group">
                        <label for="focusedInput" class="control-label">
                        </label>
                        <div class="controls">
                            <!--<asp:Button ID="bt_cpf" runat="server" CssClass="btn btn-primary" Text="Consultar"
                                OnClick="bt_cpf_Click1" />-->
                            <br />
                            <asp:Literal ID="lt_msg" runat="server"></asp:Literal>
                        </div>
                    </div>
                </asp:Panel>
                <%--</form>--%>
            </div>
            <div class="clear">
            </div>
            <h4 class="sub_title mtop">
                dados pessoais
            </h4>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    Nome Completo:</label>
                <div class="controls">
                    <asp:TextBox ID="tb_nomecompleto" Columns="40" ReadOnly="false" runat="server" CssClass="input-xlarge"></asp:TextBox>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    Primeiro Nome:</label>
                <div class="controls">
                    <asp:TextBox ID="tb_primeironome" Columns="30" ValidationGroup="cadp1" MaxLength="30"
                        runat="server" CssClass="input-xlarge "></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ValidationGroup="cadp1"
                        ControlToValidate="tb_primeironome" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    Último Nome:</label>
                <div class="controls">
                    <asp:TextBox ID="tb_ultimonome" Columns="30" ValidationGroup="cadp1" MaxLength="30"
                        runat="server" CssClass="input-xlarge "></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ValidationGroup="cadp1"
                        ControlToValidate="tb_ultimonome" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    E-mail:</label>
                <div class="controls">
                    <asp:TextBox ID="tb_email" ValidationGroup="cadp1" Columns="40" MaxLength="80" runat="server"
                        CssClass="input-xlarge "></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ValidationGroup="cadp1"
                        ControlToValidate="tb_email" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                            ValidationGroup="cadp1" ID="RegularExpressionValidator3" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                            ControlToValidate="tb_email" runat="server" CssClass="validador" Display="Dynamic"
                            ErrorMessage="e-mail Inválido!"></asp:RegularExpressionValidator>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    Data Nascimento:</label>
                <div class="controls">
                    <asp:TextBox ID="tb_dtnasc" ValidationGroup="cadp1" runat="server" CssClass="input-xlarge "></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="tb_dtnasc"
                        ValidationGroup="cadp1" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="tb_dtnasc"
                        Mask="99/99/9999" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus"
                        OnInvalidCssClass="validador" MaskType="None" InputDirection="LeftToRight" AcceptNegative="Left"
                        ErrorTooltipEnabled="True">
                    </asp:MaskedEditExtender>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    Empresa:</label>
                <div class="controls">
                    <asp:DropDownList ID="dd_empresas" runat="server"  CssClass="input-xlarge">
                    </asp:DropDownList>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    Grupo:</label>
                <div class="controls">
                    <asp:DropDownList ID="dd_grupo" runat="server"  CssClass="input-xlarge">
                    </asp:DropDownList>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    Usuário Ativo:</label>
                <div class="controls">
                    <asp:CheckBox ID="cb_ativo" runat="server" />
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                </label>
                <div class="controls">
                    <asp:Button ID="bt_gravar" runat="server" Text="Gravar" CssClass="btn btn-primary"
                        ValidationGroup="cadp1" OnClick="bt_gravar_Click" />
                    &nbsp;<asp:Button ID="bt_enviarEmail" runat="server" Text="Enviar Email com Senha"
                        CssClass="btn btn-primary" ValidationGroup="cad2" OnClick="bt_enviarEmail_Click" /><br
                            class="clear" />
                    <asp:Literal ID="lt_msgcad" runat="server"></asp:Literal>
                </div>
            </div>
        </div>
        <!-- close content_area -->
    </div>
</asp:Content>
